Skip to content

feat(accounts): support batch auth import/export and optional proxy key hardening#159

Open
keksmd wants to merge 4 commits intoSoju06:mainfrom
keksmd:feature/batch-auth-import-export-proxy-key
Open

feat(accounts): support batch auth import/export and optional proxy key hardening#159
keksmd wants to merge 4 commits intoSoju06:mainfrom
keksmd:feature/batch-auth-import-export-proxy-key

Conversation

@keksmd
Copy link
Copy Markdown

@keksmd keksmd commented Mar 9, 2026

Summary

This PR introduces account-management and proxy-hardening improvements with OpenSpec/docs/tests alignment.

What’s included

  • Add batch auth import flow (POST /api/accounts/import/batch) with per-file success/failure reporting.
  • Add auth archive export (GET /api/accounts/export) for current account auth payloads.
  • Refresh imported credentials on import when access token is expired but refresh token is valid.
  • Add optional additional proxy guard via X-Codex-Proxy-Key (additive to Bearer auth, not a replacement).
  • Add dashboard settings support for outbound HTTP proxy URL.
  • Improve runtime behavior in container entrypoint:
    • honor PORT
    • load mounted /app/.env
  • Keep behavior optional by default (no forced enablement).

Docs / Spec alignment

  • Update OpenSpec requirements for:
    • frontend accounts batch import/export flow
    • optional additional proxy header guard semantics
  • Update README notes for optional guard and runtime/container behavior.

Tests

Added/updated backend and frontend tests for the new flows and compatibility paths, including migration and CLI test alignment.

Validation performed:

  • openspec validate --specs → passed
  • Targeted backend/integration suite for affected areas → 71 passed, 2 skipped

keksmd added 2 commits March 9, 2026 22:46
…uth-import-export-proxy-key

# Conflicts:
#	app/core/auth/dependencies.py
#	app/core/clients/codex_version.py
#	app/core/clients/http.py
#	app/core/clients/proxy.py
#	app/core/config/settings.py
#	app/db/models.py
#	app/main.py
#	app/modules/accounts/service.py
#	app/modules/proxy/service.py
#	frontend/src/features/settings/components/import-settings.tsx
#	frontend/src/features/settings/components/routing-settings.tsx
#	frontend/src/features/settings/components/settings-page.tsx
#	frontend/src/features/settings/components/totp-settings.tsx
#	tests/integration/test_migrations.py
#	uv.lock
@keksmd keksmd requested a review from Soju06 as a code owner March 13, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant